#ifndef BOITEDIALOG_H
#define BOITEDIALOG_H

#include<QWidget>
#include<QDialog>
#include<QStandardItemModel>
#include<QTreeView>
#include<QHBoxLayout>
#include"fenetre.h"
#include<QStringListModel>




class BoiteDialog: public QDialog
{ Q_OBJECT

public:
    BoiteDialog(Fenetre *parent=0, Qt::WindowFlags f=0);
    QStandardItemModel* getModel(const int& index);

    QTreeView* getTreeModif();
    void changeTab(int i);


public slots:
    void changeBoutonModif();



private:
    Fenetre* parent_;
    QHBoxLayout* layoutDialog_;
    QStandardItemModel* modelModif_;
    QStandardItemModel* models_[6];
    QTreeView* treeModif_;


};


class DialogAjout: public QDialog
{ Q_OBJECT
  public:
    DialogAjout(Fenetre *parent=0, Qt::WindowFlags f=0);
    void setModel(const QStringList list);

    QListView* getViewList() const;

    int getTypeModel() const;
    void setTypeModel(const int& i);

  private:
    Fenetre* parent_;
    QVBoxLayout* layoutDialog_;
    QListView* viewList_;
    QStringListModel* modele_;
    int typeModel_;

};

#endif // BOITEDIALOG_H
